import requests
from lxml import etree

url = 'http://gongbao.court.gov.cn/ArticleList.html'
res = requests.post(url, data={
    'serial_no': 'cpwsxd',
    'page': '1'
})
tree = etree.HTML(res.text)
lis = tree.xpath('//li')
for li in lis:
    title = li.xpath('.//a/text()')[0]
    detail_url = f'http://gongbao.court.gov.cn{li.xpath('.//a/@href')[0]}'
    detail_res = requests.get(detail_url)
    # print(detail_res.text)
    tree = etree.HTML(detail_res.text)
    ps = tree.xpath('//div[@class="content_box"]/p')
    for p in ps:
        if p.xpath('.//span/text()'):
            print(p.xpath('.//span/text()')[0])
        else:
            continue
    break